< previous page page_439 next page >

Page 439
Puzzle 20
You might want to become familiar with the Visual Basic Enum keyword.
Puzzle 21
There are at least two solutions to this problemcan you find both?
Don't forget the value of experimentation.
Puzzle 22
The declaration from the win32api.txt provided with Visual Basic should never be assumed to be correct.
What happens when you step through the code?
See Tutorial 7, "Classes, Structures, and User-Defined Types," in Part III of this book.
Puzzle 23
See Tutorial 2, "Memory, Where It All Begins," in Part III of this book, and read up on signed and unsigned variables.
How many bytes is 168 bits?
Puzzle 24
What does a Visual Basic function expect to see when a parameter is declared ByVal As String? Is it the same as what an API function would receive in the same circumstances?
You may also want to look up the EnumSystemLocales function in the Win32 online documentation or in my book Visual Basic Programmer's Guide to the Win32 API, but it is not necessary to solve the problem.

 
< previous page page_439 next page >